package com.zhny.sensor.entity;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Entity
@Table(name="entrust")
public class Entrust implements Serializable{

    @Id
    private String id; //主键


    private String userId; //用户id
    private String name; //用户名
    private String toMarketId; //去向市场id
    private Integer stallsId; //屠宰档口id
    private Integer houseId;//屠宰市场id
    private String poultryId;//禽类id
    private Integer poultryCount;//需要委托下单数量
    private Date cteateTime; //创建时间
    private Date acceptTime; //接单时间
    private Integer state; //状态（0已删除，1等待，2接单，3拒单，4贴标中，5已完成，6失效）
    private Date goMarketTime;//上市时间
    private Boolean isReLabelling;//是否再次贴标
    private Date reLabellingTime;//再次贴标时间
    private String barcodeNumber; //脚标机标号

    public String getBarcodeNumber() {
        return barcodeNumber;
    }

    public void setBarcodeNumber(String barcodeNumber) {
        this.barcodeNumber = barcodeNumber;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getToMarketId() {
        return toMarketId;
    }

    public void setToMarketId(String toMarketId) {
        this.toMarketId = toMarketId;
    }

    public Integer getStallsId() {
        return stallsId;
    }

    public void setStallsId(Integer stallsId) {
        this.stallsId = stallsId;
    }

    public Integer getHouseId() {
        return houseId;
    }

    public void setHouseId(Integer houseId) {
        this.houseId = houseId;
    }

    public String getPoultryId() {
        return poultryId;
    }

    public void setPoultryId(String poultryId) {
        this.poultryId = poultryId;
    }

    public Integer getPoultryCount() {
        return poultryCount;
    }

    public void setPoultryCount(Integer poultryCount) {
        this.poultryCount = poultryCount;
    }

    public Date getCteateTime() {
        return cteateTime;
    }

    public void setCteateTime(Date cteateTime) {
        this.cteateTime = cteateTime;
    }

    public Date getAcceptTime() {
        return acceptTime;
    }

    public void setAcceptTime(Date acceptTime) {
        this.acceptTime = acceptTime;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Date getGoMarketTime() {
        return goMarketTime;
    }

    public void setGoMarketTime(Date goMarketTime) {
        this.goMarketTime = goMarketTime;
    }

    public Boolean getReLabelling() {
        return isReLabelling;
    }

    public void setReLabelling(Boolean reLabelling) {
        isReLabelling = reLabelling;
    }

    public Date getReLabellingTime() {
        return reLabellingTime;
    }

    public void setReLabellingTime(Date reLabellingTime) {
        this.reLabellingTime = reLabellingTime;
    }
}
